package com.theme.passport.entity.constant;

public enum CarouselTypeEnum {


    THEME(1,"主题"),
    WIDGE(2,"组件"),
    WALLPAPER(3,"壁纸");

    private int value;
    private String name;

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    CarouselTypeEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }

    @Override
    public String toString() {
        return "UserStatus{" +
                "value=" + value +
                ", name='" + name + '\'' +
                '}';
    }


    public static CarouselTypeEnum getDocumentTypeEnum(int value){
        for (CarouselTypeEnum name: values()) {
            if (name.value == value) {
                return name;
            }
        }
        return null;
    }

}
